import http from "@/utils/request/httpRequest.ts";
import type { ListPagination, ListType } from "@/types/commonType.ts";
import type { achievementType } from "@/types/achievement"
import type { GroupListType} from "@/types/expertGroup.ts";

export const getAchievementList = (params: ListPagination & {
    phone: string,
    projectType: string,
    channel: string,
    projectSource: string
    groupId: string
}) => http.get<ListType<achievementType[]>>("mark/queryMarkResult", {
    params
})

export const getDetail = (data: any) => http.post<string>("mark/statisticsByAdmin", data)

export const uploadData = (data: any) => http.getUpload('mark/exportXls', data)

// competition/teacher-group/pageGroup

export const groupList = () => http.get<GroupListType[]>("teacher-group/groupList")